import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [uni()],
  //#ifdef H5
  server: {
    //代理配置
    proxy: {
      '/ws': {
        target: 'https://apis.map.qq.com',
        // 是否允许跨域
        changeOrigin: true,
      },
    },
  },
  //#endif
})
